package com.task.sql.schedule.constant;/**
 * @ClassName : DBColumnValue
 * @Description : 数据库字段默认值
 * @Author : liudonghai
 * @Date: 2024-09-11 16:10
 */

/**
 * @ClassName : DBColumnValue
 * @Description : 数据库字段默认值
 * @Author : liudonghai
 * @Date: 2024-09-11 16:10
 */
public enum DBColumnValue {
    YN_0(0,"无效"),
    YN_1(1,"有效"),
    CREATE_USER_0(0,"SYS"),
    CREATE_USER_1(1,"WORKER_GENERATE"),
    CREATE_USER_2(2,"WORKER_EXECUTE"),
    EXEC_STATE_0(0,"未执行"),
    EXEC_STATE_1(1,"执行中，任务锁定"),
    EXEC_STATE_2(2,"执行成功"),
    EXEC_STATE_3(3,"执行失败"),

    ;

    private Integer code;

    private String msg;

    DBColumnValue(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


}
